package com.atguigu.springcloud.alibaba;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

import java.util.Properties;

//import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;

/**
 * @auther zzyy
 * @create 2020-02-24 16:26
 */
@SpringBootApplication
@EnableDiscoveryClient
//@EnableDubbo
public class MainApp8402 {

    String APP_NAME = "sentinel-test";
    String remoteAddress = "47.105.183.24:8848";
    String groupId = "DEFAULT_GROUP";
    String namespace = "public";

    String clusterMapDataId = APP_NAME + "-cluster-map";
    String configDataId = APP_NAME + "-cluster-client-config";
    String flowDataId = APP_NAME + "-FlowRule";
    String namespaceSetDataId = "cluster-server-namespace-set";
    Properties properties;

    {
        properties = new Properties();
        properties.setProperty("serverAddr", remoteAddress);
        properties.setProperty("namespace", namespace);
    }

    public static void main(String[] args) {
        SpringApplication.run(MainApp8402.class, args);

    }
}
